<?php

class Users_Table_Access_User2Group extends Workset_Db_Table {

    protected $_name = 't_access_user2group';

    protected $_primary = array('user_id', 'group_id');

    protected $_referenceMap = array(
        'user' => array(
            'columns' 		=> 'user_id',
            'refTableClass' => 'Users_Table_User',
            'refColumns' 	=> 'id'
        ),
        'group' => array(
            'columns' 		=> 'group_id',
            'refTableClass' => 'Users_Table_Access_Group',
            'refColumns' 	=> 'id'
        ),
    );

}